package Course13;

public class Mistake {
    public static void main(String[] args) {
        //String[] students={"lilei","hanmeimei","lucy"};
        //System.out.println(students[3]);
        //System.out.println(students[2]);
        try {
            String[] students = {"lilei", "hanmeimei", "lucy"};
            System.out.println("Access element three" + students[3]);
        } catch (ArrayIndexOutOfBoundsException e) {
            System.out.println("Exception thrown:" + e);
        System.out.println("数组越界啦");
        System.out.println("请输入正确的数组哈");}
    }
}
